package package1;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Simple demo that uses java.util.Timer to schedule a task to execute once 5
 * seconds have passed.
 */

public class ReminderBeep
{

   public ReminderBeep(int seconds)
   {

   }

   public static void main(String args[])
   {
      Timer timer = new Timer();
      timer.schedule(new TimerTask()
      {

         @Override
         public void run()
         {
            System.out.println("Time's up!");

         }
      }, 5 * 1000,1000);
   }
}
